package com.nanfang51g3.ckz.ui.accounting;

import com.nanfang51g3.ckz.utils.KLog;

import dagger.Module;
import dagger.Provides;

/**
 * dagger2 模块 通过注入View 给P层 {@link AccountingPresenter } ,@Inject 标记 {@link AccountingPresenter }构造函数
 * {@link AccountingPresenter }
 */
@Module
public class AccountingPresenterModule {

    private final AccountingContract.View mView;

    public AccountingPresenterModule(AccountingContract.View mView) {
        KLog.i("TAG",mView==null?"进入了...AccountingPresenterModule-is null":"进入了...AccountingPresenterModule-not null");
        this.mView = mView;
    }


    @Provides
    AccountingContract.View provideMeContractView() {
        return mView;
    }

}
